from iHome import app_tool,db,models
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand

# develop 开发模式 , prodeuct 生产模式
app = app_tool('develop')

# 数据库迁移
manager = Manager(app)
Migrate(app,db)
manager.add_command("db", MigrateCommand)# 添加命令


if __name__ == "__main__":
    manager.run()
